<template>
  <div class="info">
    <MainSlot>
      <span slot="title">信息导出配置</span>
      <button slot="one">添加配置</button>
      <button slot="two">编辑配置</button>
      <button slot="three">删除配置</button>
      <button slot="four">退出</button>
    </MainSlot>
    <el-table :data="tableData" height="720" border style="width: 100%">
      <el-table-column prop="order" label="序号" width="160"> </el-table-column>
      <el-table-column prop="en_name" label="字段名" width="160"> </el-table-column>
      <el-table-column prop="cn_name" label="字段中文名称"> </el-table-column>
      <el-table-column prop="query" label="查询导出" width="160"> </el-table-column>
      <el-table-column prop="list" label="新生名册导出" width="160"> </el-table-column>
      <el-table-column prop="table" label="关联表名" width="160"> </el-table-column>
      <el-table-column prop="column" label="关联列名" width="160"> </el-table-column>
      <el-table-column prop="show" label="显示列名" width="160"> </el-table-column>
      <el-table-column prop="show_name" label="显示名称" width="160"> </el-table-column>
    </el-table>
  </div>
</template>

<script>
import MainSlot from "../../common/MainSlot"
export default {
  name: '',
  data() {
    return {
      tableData: [
        {
          order: "1",
          en_name: "sfdm",
          cn_name: "省份代码",
          query: "是",
          list: "是",
          table: "td_sfdm",
          column: "sfDm",
          show: "sfmc",
          show_name: "省份",
        },
        {
          order: "1",
          en_name: "sfdm",
          cn_name: "省份代码",
          query: "是",
          list: "是",
          table: "td_sfdm",
          column: "sfDm",
          show: "sfmc",
          show_name: "省份",
        },{
          order: "1",
          en_name: "sfdm",
          cn_name: "省份代码",
          query: "是",
          list: "是",
          table: "td_sfdm",
          column: "sfDm",
          show: "sfmc",
          show_name: "省份",
        },{
          order: "1",
          en_name: "sfdm",
          cn_name: "省份代码",
          query: "是",
          list: "是",
          table: "td_sfdm",
          column: "sfDm",
          show: "sfmc",
          show_name: "省份",
        },{
          order: "1",
          en_name: "sfdm",
          cn_name: "省份代码",
          query: "是",
          list: "是",
          table: "td_sfdm",
          column: "sfDm",
          show: "sfmc",
          show_name: "省份",
        },{
          order: "1",
          en_name: "sfdm",
          cn_name: "省份代码",
          query: "是",
          list: "是",
          table: "td_sfdm",
          column: "sfDm",
          show: "sfmc",
          show_name: "省份",
        },{
          order: "1",
          en_name: "sfdm",
          cn_name: "省份代码",
          query: "是",
          list: "是",
          table: "td_sfdm",
          column: "sfDm",
          show: "sfmc",
          show_name: "省份",
        },{
          order: "1",
          en_name: "sfdm",
          cn_name: "省份代码",
          query: "是",
          list: "是",
          table: "td_sfdm",
          column: "sfDm",
          show: "sfmc",
          show_name: "省份",
        },{
          order: "1",
          en_name: "sfdm",
          cn_name: "省份代码",
          query: "是",
          list: "是",
          table: "td_sfdm",
          column: "sfDm",
          show: "sfmc",
          show_name: "省份",
        },{
          order: "1",
          en_name: "sfdm",
          cn_name: "省份代码",
          query: "是",
          list: "是",
          table: "td_sfdm",
          column: "sfDm",
          show: "sfmc",
          show_name: "省份",
        },
      ]
    }
  },
  methods: {
  },
  beforeCreate() {
    if (sessionStorage.getItem("token") == null) {
      this.$router.push("/login");
    } else {
      let token = sessionStorage.getItem("token");
      let length = sessionStorage.getItem("token").length;
      if (token[length - 6] == "0") {
        this.$router.replace("/login");
      }
    }
  },
  components: {
    MainSlot
  }
}
</script>

<style scoped>
.info ::v-deep .el-table .cell {
  text-align: center;
}
</style>